package com.lagou.service.user.dao;

import com.lagou.service.user.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserDAO extends JpaRepository<User, Long> {

    Boolean existsByEmail(String email);

    User findByEmail(String email);

}
